package com.itheima.output;

import java.io.*;

public class OUtputDemo11 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("ByteStream\\a.avi"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("ByteStream\\copy.avi"));

        int b;
        while ((b = bis.read()) != -1) {
            bos.write(b);
        }

        bis.close();
        bos.close();
    }
}
